import request from '../axios/http'

//登录
export const login = params => {
    return request({
        url:'/api/adLogin',
        method:'post',
        data:params
    })
}

//获取所有用户
export const all = params => {
    return request({
        url:'/user/all',
        method:'get',
        params
    })
}

//删除用户
export const del = params => {
    return request({
        url:'/user/delete',
        method:'post',
        data:params
    })
}

//修改用户
export const modify = params => {
    return request({
        url:'/user/modify',
        method:'post',
        data:params
    })
}

//搜索用户
export const search = params => {
    return request({
        url:'/user/search',
        method:'get',
        params
    })
}

//修改密码
export const modifyPsd = params => {
    return request({
        url:'/user/modifyPsd',
        method:'post',
        data:params
    })
}

//创建用户
export const create = params => {
    return request({
        url:'/user/create',
        method:'post',
        data:params
    })
}   